package com.zmn.oms.admin.controller.conf.orderduty;


import com.zmn.mcc.cas.model.LoginStaff;
import com.zmn.mcc.cas.web.StaffAdminService;

import java.util.Objects;

/**
 * 预约设置
 *
 * @author xujie
 * @since 2020-09-04 16:29:25
 */
public class DutyBaseController {

    /**
     * 获取登录用户名
     *
     * @param
     * @return
     */
    public String getMcStaffRealName() {
        LoginStaff staff = StaffAdminService.currentStaff();
        if(Objects.nonNull(staff)){
            return staff.getRealName();
        }else {
            return "";
        }
    }

}
